<?php 
$mobile_no_label = 'Mobile No'; 
$mobile_no = array(
					'id'		=> 'mobile_no',
					'name'		=> 'mobile_no',
					'class'		=> 'inputfield',
					'value'		=> set_value('mobile_no'),
);
$message_label = 'Message'; 
$message = array(
					'id'		=> 'message',
					'name'		=> 'message',
					'class'		=> 'textfield',
					'value'		=> set_value('message'),
					'rows'		=> '4',
					'cols'		=> 40, 
);
?>

<?php echo form_open($this->uri->uri_string()); ?>
<?php echo form_label($mobile_no_label, $mobile_no['id']); ?>
<?php echo form_input($mobile_no); ?>

<div class="error-message" style="color: red;">
<?php echo form_error($mobile_no['name']); ?>
<?php echo isset($errors[$mobile_no['name']])?$errors[$mobile_no['name']]:''; ?>
</div>
<br/>
<?php echo form_label($message_label, $message['id']); ?>
<br/>
<?php echo form_textarea($message); ?>
<br/>
<?php echo form_submit('submit', 'Send'); ?>
<?php echo form_close(); ?>